<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:80:"E:\andiffcrm\fastadmin20180314\public/../application/admin\view\column\edit.html";i:1519280924;s:73:"E:\andiffcrm\fastadmin20180314\application\admin\view\layout\default.html";i:1521019243;s:70:"E:\andiffcrm\fastadmin20180314\application\admin\view\common\meta.html";i:1521019243;s:72:"E:\andiffcrm\fastadmin20180314\application\admin\view\common\script.html";i:1521019243;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" id="c-moduleid" name="row[moduleid]" value="<?php echo $row['moduleid']; ?>" />
<div class="form-group">
<label for="c-columnname" class="control-label col-xs-12 col-sm-2">列名:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-columnname" data-rule="required" class="form-control" name="row[columnname]" type="text" value="<?php echo $row['columnname']; ?>" />
</div>
</div>
<div class="form-group">
<label for="c-columnenname" class="control-label col-xs-12 col-sm-2">列名(英文):</label>
<div class="col-xs-12 col-sm-8">
<input id="c-columnenname" data-rule="required" class="form-control" name="row[columnenname]" type="text" value="<?php echo $row['columnenname']; ?>" />
</div>
</div>
<div class="form-group">
<label for="c-columntype" class="control-label col-xs-12 col-sm-2">列的类型:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-columntype" data-rule="required" name="row[columntype]"  class="form-control selectpicker">
<option value="0">请选择</option>
<option value="varcharlong" <?php if($row['columntype'] == 'varcharlong'): ?>selected="selected"<?php endif; ?>>varchar(1000)</option>
<option value="varcharmid" <?php if($row['columntype'] == 'varcharmid'): ?>selected="selected"<?php endif; ?>>varchar(400)</option>
<option value="varcharshort" <?php if($row['columntype'] == 'varcharshort'): ?>selected="selected"<?php endif; ?>>Varchar(100)</option>
<option value="identity" <?php if($row['columntype'] == 'identity'): ?>selected="selected"<?php endif; ?>>自动增长</option>
<option value="guid" <?php if($row['columntype'] == 'guid'): ?>selected="selected"<?php endif; ?>>guid</option>
<option value="int" <?php if($row['columntype'] == 'int'): ?>selected="selected"<?php endif; ?>>int(10)</option>
<option value="bigint" <?php if($row['columntype'] == 'bigint'): ?>selected="selected"<?php endif; ?>>bigint(20)</option>
<option value="smallint" <?php if($row['columntype'] == 'smallint'): ?>selected="selected"<?php endif; ?>>smallint(4)</option>
<option value="bool" <?php if($row['columntype'] == 'bool'): ?>selected="selected"<?php endif; ?>>tinyint(1)</option>
<option value="float" <?php if($row['columntype'] == 'float'): ?>selected="selected"<?php endif; ?>>float(4,2)</option>
<option value="decimal" <?php if($row['columntype'] == 'decimal'): ?>selected="selected"<?php endif; ?>>decimal(4,2)</option>
<option value="double" <?php if($row['columntype'] == 'double'): ?>selected="selected"<?php endif; ?>>double(18,2)</option>
<option value="image" <?php if($row['columntype'] == 'image'): ?>selected="selected"<?php endif; ?>>image</option>
<option value="file" <?php if($row['columntype'] == 'file'): ?>selected="selected"<?php endif; ?>>file</option>
<option value="text" <?php if($row['columntype'] == 'text'): ?>selected="selected"<?php endif; ?>>text</option>
<option value="enum" <?php if($row['columntype'] == 'enum'): ?>selected="selected"<?php endif; ?>>enum</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-columncheck" class="control-label col-xs-12 col-sm-2">验证方式:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-columncheck" data-rule="required" name="row[columncheck]"  class="form-control selectpicker">
<option value="0">请选择</option><option value="required" <?php if($row['columncheck'] == 'required'): ?>selected="selected"<?php endif; ?>>必须填写</option>
<option value="length(8~16)" <?php if($row['columncheck'] == 'length(8~16)'): ?>selected="selected"<?php endif; ?>>长度在8—16之间</option>
<option value="digits" <?php if($row['columncheck'] == 'digits'): ?>selected="selected"<?php endif; ?>>数字</option>
<option value="letters" <?php if($row['columncheck'] == 'letters'): ?>selected="selected"<?php endif; ?>>字母</option>
<option value="date" <?php if($row['columncheck'] == 'date'): ?>selected="selected"<?php endif; ?>>日期格式yyyy-mm-dd</option>
<option value="email" <?php if($row['columncheck'] == 'email'): ?>selected="selected"<?php endif; ?>>Email</option>
<option value="time" <?php if($row['columncheck'] == 'time'): ?>selected="selected"<?php endif; ?>>时间</option>
<option value="url" <?php if($row['columncheck'] == 'url'): ?>selected="selected"<?php endif; ?>>网址</option>
<option value="qq" <?php if($row['columncheck'] == 'qq'): ?>selected="selected"<?php endif; ?>>QQ</option>
<option value="IDcard" <?php if($row['columncheck'] == 'IDcard'): ?>selected="selected"<?php endif; ?>>身份证号</option>
<option value="tel" <?php if($row['columncheck'] == 'tel'): ?>selected="selected"<?php endif; ?>>电话号码</option>
<option value="mobile" <?php if($row['columncheck'] == 'mobile'): ?>selected="selected"<?php endif; ?>>手机号</option>
<option value="zipcode" <?php if($row['columncheck'] == 'zipcode'): ?>selected="selected"<?php endif; ?>>邮编</option>
<option value="chinese" <?php if($row['columncheck'] == 'chinese'): ?>selected="selected"<?php endif; ?>>中文</option>
<option value="username" <?php if($row['columncheck'] == 'username'): ?>selected="selected"<?php endif; ?>>用户名3-12位数字、字母、下划线</option>
<option value="password" <?php if($row['columncheck'] == 'password'): ?>selected="selected"<?php endif; ?>>密码6-16位字符，不能包含空格</option>
<option value="integer" <?php if($row['columncheck'] == 'integer'): ?>selected="selected"<?php endif; ?>>整数</option>
<option value="integer(+)" <?php if($row['columncheck'] == 'integer(+)'): ?>selected="selected"<?php endif; ?>>正整数</option>
<option value="integer(-)" <?php if($row['columncheck'] == 'integer(-)'): ?>selected="selected"<?php endif; ?>>负整数</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-cname" class="control-label col-xs-12 col-sm-2">模型名称:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-cname" data-rule="required" class="form-control" name="row[cname]" type="text" value="<?php echo $row['cname']; ?>" />
</div>
</div>
<div class="form-group">
<label for="c-rname" class="control-label col-xs-12 col-sm-2">关联模型名称:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-rname" data-rule="" class="form-control" name="row[rname]" type="text" value="<?php echo $row['rname']; ?>" />
</div>
</div>
<div class="form-group">
<label for="c-relate" class="control-label col-xs-12 col-sm-2">关系类型:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-relate" data-rule="required" name="row[relate]"  class="form-control selectpicker">
<option value="0">请选择</option><option value="1" <?php if($row['relate'] == '1'): ?>selected="selected"<?php endif; ?>>一对一</option>
<option value="2" <?php if($row['relate'] == '2'): ?>selected="selected"<?php endif; ?>>多对一</option>
<option value="3" <?php if($row['relate'] == '3'): ?>selected="selected"<?php endif; ?>>多对多</option>
<option value="4" <?php if($row['relate'] == '4'): ?>selected="selected"<?php endif; ?>>一对多</option>
</select>
</div>
</div>

<div class="form-group">
<label for="c-isintable" class="control-label col-xs-12 col-sm-2">是否是表字段:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isintable"><input name="row[isintable]" type="radio" value="1" <?php if($row['isintable'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isintable"><input name="row[isintable]" type="radio" value="0" <?php if($row['isintable'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowlist" class="control-label col-xs-12 col-sm-2">是否在列表显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowlist"><input name="row[isshowlist]" type="radio" value="1" <?php if($row['isshowlist'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isshowlist"><input name="row[isshowlist]" type="radio" value="0" <?php if($row['isshowlist'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowadd" class="control-label col-xs-12 col-sm-2">在添加界面是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowadd"><input name="row[isshowadd]" type="radio" value="1" <?php if($row['isshowadd'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isshowadd"><input name="row[isshowadd]" type="radio" value="0" <?php if($row['isshowadd'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowedit" class="control-label col-xs-12 col-sm-2">编辑界面是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowedit"><input name="row[isshowedit]" type="radio" value="1" <?php if($row['isshowedit'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isshowedit"><input name="row[isshowedit]" type="radio" value="0" <?php if($row['isshowedit'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowwindow" class="control-label col-xs-12 col-sm-2">弹出窗口是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowwindow"><input name="row[isshowwindow]" type="radio" value="1" <?php if($row['isshowwindow'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isshowwindow"><input name="row[isshowwindow]" type="radio" value="0" <?php if($row['isshowwindow'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowsearch" class="control-label col-xs-12 col-sm-2">搜索的时候是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowsearch"><input name="row[isshowsearch]" type="radio" value="1" <?php if($row['isshowsearch'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isshowsearch"><input name="row[isshowsearch]" type="radio" value="0" <?php if($row['isshowsearch'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isoption" class="control-label col-xs-12 col-sm-2">是否选项:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isoption"><input name="row[isoption]" type="radio" value="1" <?php if($row['isoption'] == '1'): ?>checked="checked"<?php endif; ?> /> 是</label>
<label for="isoption"><input name="row[isoption]" type="radio" value="0" <?php if($row['isoption'] == '0'): ?>checked="checked"<?php endif; ?> /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-options" class="control-label col-xs-12 col-sm-2">选项:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-options" data-rule="" class="form-control" name="row[options]" type="text" value="<?php echo $row['options']; ?>" />
</div>
</div>
<div class="form-group">
<label for="c-optionform" class="control-label col-xs-12 col-sm-2">选项的表现形式:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-optionform" data-rule="" name="row[optionform]"  class="form-control selectpicker">
    <option value="0">请选择</option>
    <option value="select" <?php if($row['optionform'] == 'select'): ?>selected="selected"<?php endif; ?>>Bootstrap的select形式</option>
    <option value="radio" <?php if($row['optionform'] == 'radio'): ?>selected="selected"<?php endif; ?>>单选</option>
    <option value="checkbox" <?php if($row['optionform'] == 'checkbox'): ?>selected="selected"<?php endif; ?>>多选</option>
    <option value="select3" <?php if($row['optionform'] == 'select3'): ?>selected="selected"<?php endif; ?>>类别无限极选择</option>
    <option value="image" <?php if($row['optionform'] == 'image'): ?>selected="selected"<?php endif; ?>>选择图片</option>
    <option value="file" <?php if($row['optionform'] == 'file'): ?>selected="selected"<?php endif; ?>>选择文件</option>
    <option value="datetime" <?php if($row['optionform'] == 'datetime'): ?>selected="selected"<?php endif; ?>>日期选择</option>
    <option value="upyun"  <?php if($row['optionform'] == 'upyun'): ?>selected="selected"<?php endif; ?>>又拍云</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-optionurl" class="control-label col-xs-12 col-sm-2">获取选项的URL:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-optionurl" data-rule="" class="form-control" name="row[optionurl]" type="text" value="<?php echo $row['optionurl']; ?>" />
</div>
</div>
<div class="form-group">
    <label for="c-default" class="control-label col-xs-12 col-sm-2">默认值:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-default" data-rule="" class="form-control" name="row[default]" type="text" value="<?php echo $row['default']; ?>" />
    </div>
</div>
<div class="form-group">
<label for="c-listorder" class="control-label col-xs-12 col-sm-2">顺序:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-listorder" data-rule="" class="form-control" name="row[listorder]" type="text" value="<?php echo $row['listorder']; ?>" />
</div>
</div>
<div class="form-group">
<label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-intro" data-rule="" class="form-control" name="row[intro]" type="text" value="<?php echo $row['intro']; ?>" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed">确定</button>
<button type="reset" class="btn btn-default btn-embossed">重置</button>
<button type="button" class="btn btn-default returnback">返回</button>
</div>
</div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>